<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/common/head.jsp"%>
<div class="right">
            <div class="location">
                <strong>你现在所在的位置是:</strong>
                <span>密码修改页面</span>
            </div>
            <div class="providerAdd">
                <form id="userForm" name="userForm" method="post" action="${pageContext.request.contextPath }/userPwdMod">
                    <input type="hidden" name="method" value="savepwd">
                    <!--div的class 为error是验证错误，ok是验证成功-->
                    <div class="info">${message}</div>
                    <div class="">
                        <label for="old_password">旧密码：</label>
                        <input type="password" name="old_password" id="old_password" value="">
						<font color="red">*</font>
                    </div>
                    <div>
                        <label for="new_password">新密码：</label>
                        <input type="password" name="new_password" id="new_password" value="" required>
						<font color="red">*</font>
                    </div>
                    <div>
                        <label for="r_new_password">确认新密码：</label>
                        <input type="password" name="r_new_password" id="r_new_password" value="" required>
						<font color="red">*</font>
                    </div>
                    <div class="providerAddBtn">
                        <input type="button" name="save" id="save" value="保存" class="input-button">
                    </div>
                </form>
            </div>
        </div>
    </section>
<%@include file="/WEB-INF/jsp/common/foot.jsp" %>
<script type="text/javascript">
    $(function (){
        $("#save").click(function (){
            // 判断密码和确认密码要一致
            if($("#new_password").val() != $("#r_new_password").val()){
                alert("两次密码不一致！");
                return false;
            }
            $("#userForm").submit();
        })
    })
</script>
